gtk_widget_queue_resize (widget);
}
-static void
-reset_style_recurse (GtkWidget *widget, gpointer user_data)
-{
- GtkWidgetPrivate *priv = gtk_widget_get_instance_private (widget);
-
- gtk_css_node_invalidate (priv->cssnode, GTK_CSS_CHANGE_ANY);
-
- gtk_widget_forall (widget, reset_style_recurse, user_data);
-}
-
-/**
- * gtk_widget_reset_style:
- * @widget: a #GtkWidget
- *
- * Updates the style context of @widget and all descendants
- * by updating its widget path. #GtkContainers may want
- * to use this on a child when reordering it in a way that a different
- * style might apply to it.
- */
-void
-gtk_widget_reset_style (GtkWidget *widget)
-{
- GtkWidgetPrivate *priv = gtk_widget_get_instance_private (widget);
-
- g_return_if_fail (GTK_IS_WIDGET (widget));
-
- reset_style_recurse (widget, NULL);
-
- g_list_foreach (priv->attached_windows,
- (GFunc) reset_style_recurse, NULL);
-}
-
#ifdef G_ENABLE_CONSISTENCY_CHECKS
/* Verify invariants, see docs/widget_system.txt for notes on much of
for (l = style_data->classes; l; l = l->next)
gtk_widget_add_css_class (GTK_WIDGET (buildable), (const char *)l->data);
- gtk_widget_reset_style (GTK_WIDGET (buildable));
-
g_slist_free_full (style_data->classes, g_free);
g_slice_free (StyleParserData, style_data);
}
return NULL;
}
-void
-_gtk_widget_add_attached_window (GtkWidget *widget,
- GtkWindow *window)
-{
- GtkWidgetPrivate *priv = gtk_widget_get_instance_private (widget);
-
- priv->attached_windows = g_list_prepend (priv->attached_windows, window);
-}
-
-void
-_gtk_widget_remove_attached_window (GtkWidget *widget,
- GtkWindow *window)
-{
- GtkWidgetPrivate *priv = gtk_widget_get_instance_private (widget);
-
- priv->attached_windows = g_list_remove (priv->attached_windows, window);
-}
-
/**
* gtk_widget_class_set_css_name:
* @widget_class: class to set the name on
*/
GtkRoot *root;
- /* The list of attached windows to this widget.
- * We keep a list in order to call reset_style to all of them,
- * recursively.
- */
- GList *attached_windows;
-
/* The style for the widget. The style contains the
* colors the widget should be drawn in for each state
* along with graphics contexts used to draw with and
gpointer group);
GSList *_gtk_widget_get_sizegroups (GtkWidget *widget);
-void _gtk_widget_add_attached_window (GtkWidget *widget,
- GtkWindow *window);
-void _gtk_widget_remove_attached_window (GtkWidget *widget,
- GtkWindow *window);
-
AtkObject * _gtk_widget_peek_accessible (GtkWidget *widget);
void _gtk_widget_set_has_default (GtkWidget *widget,